package com.person.controller;

import com.person.model.entity.Result;
import com.person.model.vo.RegisterAcceptanceVo;
import com.person.service.RegisterAcceptanceService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("register_acceptance")
public class RegisterAcceptanceController {
    @Resource
    private RegisterAcceptanceService registerAcceptanceService;

    @PostMapping("/export")
    public Result export(@RequestBody RegisterAcceptanceVo registerAcceptanceVo) {
        registerAcceptanceService.export(registerAcceptanceVo);
        return Result.success();
    }
}
